package lia.searching;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.apache.lucene.search.IndexSearcher;

/**
 * search servlet fragment...
 * TODO: chapter 6
 * @author F.H Dragon(fhdragon@gmail.com)
 * @version 1.0 at 2011/08/15
 */
public class SearchServletFragment extends HttpServlet {
	
	// local variables
	
	/**
	 * UID
	 */
	private static final long serialVersionUID = 6701716729582610494L;
	/**
	 * log
	 */
	private static final Logger logger = Logger.getLogger("commonLogger");
	/**
	 * index searcher
	 */
	IndexSearcher is;
	
	/**
	 * Do Get
	 * 
	 * @param req
	 * @param res
	 * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		logger.debug("Begin: SearchServletFragment...");
		super.doGet(req, resp);
		logger.debug("End: SearchServletFragment!");
	}

}
